﻿/*!
* File Name: Warmup.js
* Created When:     2012-02-09
* Created by:       cp
* Created Whys:     
*/

/// <summary>
///     为英国元素的作品投票
/// </summary>
/// <returns>
/// </returns>
function doVote(id) {
    var url = "/XmlHttpGate.aspx?cmd=doVote&langID=2052&wid=" + id + "&random=" + new Date().toLocaleString();
    var warmup = null;
    jQuery.ajax({
        url: url,
        dataType: 'json',
        async: false,
        success: function (data) {
            warmup = data;
        }
    });
    return warmup;
}

function doEVote(id) {
    var url = "/XmlHttpGate.aspx?cmd=doVote&langID=1033&wid=" + id + "&random=" + new Date().toLocaleString();
    var warmup = null;
    jQuery.ajax({
        url: url,
        dataType: 'json',
        async: false,
        success: function (data) {
            warmup = data;
        }
    });
    return warmup;
}